<template>
  <div class="index">
    <el-form ref="dataForm"
             :model="form"
             :rules="rules">
      <el-row :gutter="20">
        <el-col :span="4">
          <div class="dqtitle">弱电配置</div>
          <el-card class="box-card">
            <div class="dataFormTitle">设备列表</div>
            <el-form-item>
              <div style="height:580px;width:150px;overflow:auto;">
                <div v-for="item in allChicketList"
                     :key="item"
                     style="margin-bottom:10px;">{{item}}</div>
              </div>
            </el-form-item>
          </el-card>
        </el-col>
        <el-col :span="16">
          <div class="dqtitle">常用命令</div>
          <el-tabs type="border-card"
                   style="width: 900px;height: 650px">
            <el-tab-pane label="SD卡效果">
              <SDTabs></SDTabs>
            </el-tab-pane>
            <el-tab-pane label="内置效果">
              <SysTabs></SysTabs>
            </el-tab-pane>
            <el-tab-pane label="DMX设置">
              <DMXTabs></DMXTabs>
            </el-tab-pane>
          </el-tabs>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer"
         class="dialog-footer"
         align="center">
      <!-- <el-button type="primary" @click="confirm()">修 改</el-button> -->
      <el-button @click="cancel()">取 消</el-button>
    </div>
  </div>
</template>

<script>
import SDTabs from './tabs/SDTabs'
import SysTabs from './tabs/SysTabs'
import DMXTabs from './tabs/DMXTabs'
export default {
  name: 'index',
  props: ['allChicketList'],
  data () {
    return {
      hello: 'hello',
      rules: { // 表单验证
        productDay: [{ required: true, message: '请输入有效期', trigger: 'blur' }]
      },
      form: {} // 修改携带数据
    }
  },
  watch: {

  },
  methods: {
    confirm () {

    },
    // 取消修改
    cancel () {
      this.$emit('cancel')
    }
  },
  components: {
    SDTabs,
    SysTabs,
    DMXTabs
  }
}
</script>

<style scoped>
.dqtitle {
  font-size: 22px;
  margin-bottom: 10px;
}
.dataFormTitle {
  font-size: 18px;
  margin-bottom: 10px;
}
.dialog-footer {
  margin-top: 30px;
}
.onlineControl {
  float: left;
  width: 690px;
}
.onlineControlItems div {
  float: left;
  height: 40px;
  line-height: 40px;
}
.onlineControlItemsTitle {
  margin-right: 10px;
}
.onlineControlItemsCont {
  margin-right: 45px;
}
.SCcard {
  float: left;
}
.tdleight {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 670px;
  height: 420px;
  background-color: #f5f5f5;
}
.LeightBlockTitle {
  margin-right: 20px;
}
.LeightBlock div {
  height: 40px;
  line-height: 40px;
  float: left;
}
.sceneControllerItems {
  float: left;
  width: 90px;
  height: 90px;
  text-align: center;
  line-height: 90px;
}
.sceneControllerItemsOne {
  float: left;
  width: 180px;
  height: 90px;
  text-align: center;
  line-height: 90px;
}
</style>
<style>
.el-card {
  height: 650px;
}
.el-col-4 {
  margin-right: 30px;
  width: 18%;
}
.el-radio-group {
  width: 200px;
}
.el-radio-group label {
  margin-bottom: 6px;
}
.el-color-picker__trigger {
  height: 200px;
  width: 200px;
}
</style>
